#include "qlinearintconfigdialog.h"
#include "ui_qlinearintconfigdialog.h"

QLinearIntConfigDialog::QLinearIntConfigDialog(QWidget *parent) :
    QBaseDialog(parent),
    ui(new Ui::QLinearIntConfigDialog),
    m_period(0),
    m_step(0)
{
    ui->setupUi(this);
    setProperty("no-ManhattanStyle",true);
}

QLinearIntConfigDialog::~QLinearIntConfigDialog()
{
    delete ui;
}

void QLinearIntConfigDialog::on_okBtn_clicked()
{
    m_step=ui->spinBox_2->value();
    m_period=ui->spinBox->value();
    close();
}

void QLinearIntConfigDialog::on_cancelBtn_clicked()
{
    close();
}

int QLinearIntConfigDialog::get_period()
{
    return m_period;
}

int QLinearIntConfigDialog::get_step()
{
    return m_step;
}
